/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package apus.authorisation;

import apus.persistence.UserDAO;
import apus.services.ServiceLocator;

/**
 *
 * @author 21vek
 */
public class UserValidator {

    public static int isLoginValid(String login, String password) {
        UserDAO userDAO = ServiceLocator.getService(UserDAO.class);
        int result = userDAO.checkAuthorisation(login, password);
        return result;
    }
}
